Skip to content

Conversation

@dcodeIO
Copy link
Owner

@dcodeIO dcodeIO commented Sep 8, 2020

Adds a custom --enable-anyref feature that allows us to test subtyping relationship of externref, funcref and exnref without having to enable the full set of GC features.

@dcodeIO
Copy link
Owner Author

dcodeIO commented Sep 8, 2020

Reminds me that those error diffs are, well, not so useful :)

Copy link

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Let's go ahead and merge the previous PR and this one shortly thereafter.

SmallVector<Type, 2> options;
options.push_back(type); // includes itself
// TODO (GC): subtyping
if (wasm.features.hasReferenceTypes()) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's push this if down inside of the anyref case of the switch so the switch can be at the top level.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in the rebased PR :)

Comment on lines +1 to +3
(module
(global $g (mut anyref) (ref.null any))
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this file needs to be checked in.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this file in the rebased PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants